<!-- responseObject [[
numbers:amount of ocurrences of mached titels [0]-[x]
titles:title of pages matched as a list [0]-[x]
links:links of pages matched as a list [0]-[x]
search: the search string
noResultsFound: true if no results were found
searchParameter:  the search string
lang: language parameter
-->

<g:if test="${responseObject?.lang == 'en'}" >
  <g:if test="${responseObject?.noResultsFound == true}" >
 <br />
    <h3>Results</h3>
    <i>No concepts were found for your search term: "${responseObject.searchParameter}"</i>



  </g:if>
  <g:elseif test="${responseObject?.titles != null}" >
 <br />
    <h3>Results</h3>
    <i>  Concepts captured per file.</i>
    <br>    
    <g:each  status="i" var="myVar" in="${responseObject.titles}">
      <ul style="">
        <li style="text-decoration: underline;font-weight:bold;">
          <a onclick="highlightTerm();" href="${responseObject.links[i]}">${responseObject.titles[i]}</a>          
        </li>
        <li style="list-style: none;">
          <span style="color:lightslategrey">${responseObject.links[i]} - found ${responseObject.numbers[i]} - elements</span>
          
        </li>
        <li class="mdd-fc-srhighlight" style="list-style: none;">
          ${responseObject.results[i]}
          
        </li>
      </ul>

    

      <br>
    </g:each>


  </g:elseif>
</g:if>
<g:if test="${responseObject?.lang == 'de'}" >
  <g:if test="${responseObject?.noResultsFound == true}" >
     <br />
    <h3>Resultate</h3>
    <i>Es wurden keine Resultate gefunden für: "${responseObject.searchParameter}"</i>



  </g:if>
  <g:elseif test="${responseObject?.titles != null}" >
    <br />
    <h3>Resultate</h3>
    <i>  Gefundene Resultate pro Seite.</i>
    <br>    
    <g:each  status="i" var="myVar" in="${responseObject.titles}">
      <ul style="">
        <li style="text-decoration: underline;font-weight:bold;">
          <a onclick="highlightTerm();" href="${responseObject.links[i]}">${responseObject.titles[i]}</a>          
        </li>
        <li style="list-style: none;">
          <span style="color:lightslategrey">${responseObject.links[i]} - ${responseObject.numbers[i]} - mal gefunden.</span>
          
        </li>
        <li class="mdd-fc-srhighlight" style="list-style: none;">
          ${responseObject.results[i]}
          
        </li>
      </ul>

    

      <br>
    </g:each>


  </g:elseif>
</g:if>